import request from '@/utils/request'

// 获取空气质量指数(AQI)的时间变化数据
export function getAqiTimeData(query) {
  return request({
    url: '/system/air-quality/aqi-time-data',
    method: 'get',
    params: query
  })
}

// 获取各监测点的空气质量分布数据
export function getAqiDistributionData() {
  return request({
    url: '/system/air-quality/aqi-distribution-data',
    method: 'get'
  })
}

// 获取空气质量监测点列表
export function getAirMonitoringPoints() {
  return request({
    url: '/system/air-quality/monitoring-points',
    method: 'get'
  })
}

// 获取监测点详情
export function getMonitoringPoint(pointId) {
  return request({
    url: '/system/air-quality/monitoring-point/' + pointId,
    method: 'get'
  })
}